package com.ssm.service;

import com.ssm.dto.AppointExecution;
import com.ssm.entity.Book;

import java.util.List;

/**
 * @author mayn
 * @title: BookService
 * @projectName ssmTest
 * @description: TODO
 * @date 2019/8/6 11:48
 */
public interface BookService {
    /**
     * @return
     * @author WangJian
     * @Description //TODO 查询一本书
     * @date 2019/8/6
     * @params bookId
     */
    Book getById(long bookId);

    /**
     * @return
     * @author WangJian
     * @Description //TODO 查询所有图书
     * @date 2019/8/6
     * @params
     */
    List<Book> getlList();

    /**
     * @return com.ssm.dto.AppointExecution
     * @author WangJian
     * @Description //TODO 预约图书
     * @date 2019/8/6
     * @params [bookId 书籍id, studentId]
     */
    AppointExecution appoint(long bookId, long studentId);
}
